package com.neusoft.springboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class HelloControoler {

    @RequestMapping("/hello")
    @ResponseBody
    public String hello()
    {
        return "hello word!!!";
    }

    @RequestMapping("/gojsp.do")
    public String gotoJsp()
    {
        return "forward:test.jsp";
    }
}
